GameLoader.addGameData("debug", {
   sensors: ["orientationAlpha", "orientationBeta", "orientationGamma"],
   run: function(stage) {
       stage.set("html", "<p>alpha:<br><span id='alpha'>?</span></p><p>beta:<br><span id='beta'>?</span></p><p>gamma:<br><span id='gamma'>?</span></p><p>rotation:<br><span id='rotation'>?</span></p>");
   },
   message: function(message) {
       document.id("alpha").set("text", Math.round(message.orientationAlpha));
       document.id("beta").set("text", Math.round(message.orientationBeta));
       document.id("gamma").set("text", Math.round(message.orientationGamma));
       document.id("rotation").set("text", Math.round((message.orientationAlpha+message.orientationBeta+message.orientationGamma)/3));
   }
});